package com.realestate.model;

import java.io.Serializable;
import javax.persistence.*;

import java.util.Date;


/**
 * The persistent class for the brtb_product_attribute_value database table.
 * 
 */
@Entity
@Table(name="brtb_product_attribute_value")
public class BrtbProductAttributeValue implements Serializable {
	private static final long serialVersionUID = 1L;

	private Long id;

	private Date makeDate;

	private String strValue;

	private String recordStatus;
	
	private BrtbProduct brtbProduct;

	private BrtbAttribute brtbAttribute;

    public BrtbProductAttributeValue() {
    }

    @Id
    @GeneratedValue(strategy=GenerationType.IDENTITY)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name="make_date")
	public Date getMakeDate() {
		return this.makeDate;
	}

	public void setMakeDate(Date makeDate) {
		this.makeDate = makeDate;
	}

	@Column(name="str_value")
	public String getStrValue() {
		return this.strValue;
	}

	public void setStrValue(String strValue) {
		this.strValue = strValue;
	}

	@ManyToOne
	@JoinColumn(name="product_id")
	public BrtbProduct getBrtbProduct() {
		return this.brtbProduct;
	}

	public void setBrtbProduct(BrtbProduct brtbProduct) {
		this.brtbProduct = brtbProduct;
	}
	
	@ManyToOne
	@JoinColumn(name="attribute_id")
	public BrtbAttribute getBrtbAttribute() {
		return this.brtbAttribute;
	}

	public void setBrtbAttribute(BrtbAttribute brtbAttribute) {
		this.brtbAttribute = brtbAttribute;
	}
	
	@Column(name="record_status")
	public String getRecordStatus() {
		return this.recordStatus;
	}

	public void setRecordStatus(String recordStatus) {
		this.recordStatus = recordStatus;
	}

}